﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GameUtils;
using Microsoft.Xna.Framework;
using ThouShaltNotBrick.Logic.Helpers;
using GameUtils.Input;

namespace ThouShaltNotBrick.Logic.GeneralObjects
{
    public sealed class Pad
    {
        #region Constants
        
        #endregion

        #region Properties
        private float mPosition;
        public float Position
        {
            get { return mPosition; }
            set
            {
                mPosition = MathHelper.Clamp(value, Constants.PAD_HALF_WIDTH, Constants.LEVEL_WIDTH - Constants.PAD_HALF_WIDTH);
            }
        }
        #endregion

        #region Events
        #endregion

        #region Constructors
        public Pad(float pPosition)
        {
            Position = pPosition;
        }
        #endregion

        #region Overriden Methods
        public RectangleF GetBoundingRect()
        {
            return new RectangleF(
                Position - Constants.PAD_HALF_WIDTH,
                Constants.PAD_POSITION_Y,
                Constants.PAD_WIDTH,
                Constants.PAD_HEIGHT);
        }
        #endregion

        #region Methods
        #endregion

        #region Event Handlers
        #endregion

        #region Inner Classes
        #endregion
    }
}
